# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-mpi4py
pkgver=3.1.3
pkgrel=0
pkgdesc="Python bindings for MPI"
url="https://github.com/mpi4py/mpi4py"
arch="all"
license="BSD-2-Clause"
depends="python3"
makedepends="
	openmpi-dev
	py3-setuptools
	python3-dev
	"
source="https://github.com/mpi4py/mpi4py/releases/download/$pkgver/mpi4py-$pkgver.tar.gz"
options="!check" # Build errors
builddir="$srcdir/mpi4py-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
7a15224692016253120e8e88be1f7201e6f4548c1fb5ed15f04f416000b0d9e259dd8e80c0e237b1a960143e52b4a840d2a541359833387ac12868af1c059cea  mpi4py-3.1.3.tar.gz
"
